
#include "TwSkyBox.h"
#include "TwSkyBoxMgr.h"
#include <d3d9types.h>



void TwSkyBoxMgr::Init()
{
	m_pkSkyBox = new TwSkyBox();
	m_pkSkyBox->Init();
}

void TwSkyBoxMgr::Update()
{
	if(m_pkSkyBox)
		m_pkSkyBox->Update();
}

void TwSkyBoxMgr::Render()
{
	if(m_pkSkyBox)
		m_pkSkyBox->Render();
}

void TwSkyBoxMgr::Clear()
{
	if(m_pkSkyBox)
		m_pkSkyBox->Clear();
	delete m_pkSkyBox;
	m_pkSkyBox = NULL;
}